package org.dromara.book.domain.bo;

import org.dromara.book.domain.SzlyBookInventory;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 图书库存业务对象 szly_book_inventory
 *
 * @author LionLi
 * @date 2024-03-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SzlyBookInventory.class, reverseConvertGenerate = false)
public class SzlyBookInventoryBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 条形码
     */
    @NotBlank(message = "条形码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String barCode;

    /**
     * 入库时间
     */
    @NotNull(message = "入库时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private LocalDateTime inTime;

    /**
     * 状态
     */
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 馆藏地
     */
    @NotNull(message = "馆藏地不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long locationId;

    /**
     * 批次号
     */
    @NotNull(message = "批次号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long batchId;

    /**
     * 实洋
     */
    @NotNull(message = "实洋不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal priceReal;

    /**
     * isbn外键
     */
    @NotNull(message = "isbn外键不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long isbnId;

    /**
     * 层架id
     */
    @NotNull(message = "层架id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long shelfId;


    /**
     * 来源
     */
    @NotBlank(message = "来源不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sourceType;



}
